package leetcode.code007;

public class Test {
	public static void main(String[] args) {
		int x = 123;
		int y = 120;
		int z = -120;
		int k = 1534236469;

		print(x, new Solution1());
		print(y, new Solution1());
		print(z, new Solution1());
		print(k, new Solution1());


	}

	public static void print(int x, ISolution isolution) {
		int result = isolution.reverse(x);
		System.out.println(result);
	}
}
